<?php

namespace mbilling\BillingBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class DomainsZonesGatewaysForm extends AbstractType
{
    protected $files;

    public function __construct($files)
    {
        $this->files = $files;
    }
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder->add('name', 'text');
        $builder->add('url', 'text');
        $builder->add('login', 'text');
        $builder->add('password', 'text');
        $builder->add('file', 'choice', array('choices' => $this->files, 'required' => false));
    }
}